package com.huopaolan.yohuoshop.Mvp.Model;

import com.huopaolan.lib_core.Http.MResponseManager;
import com.huopaolan.lib_core.Mvp.Model.BaseModel;
import com.huopaolan.yohuoshop.Bean.BaseEntity;
import com.huopaolan.yohuoshop.Bean.CategoryAllGoodsEntity;
import com.huopaolan.yohuoshop.Bean.CategoryGoodsEntity;
import com.huopaolan.yohuoshop.Mvp.Contract.CategoryFragmentContract;
import com.huopaolan.yohuoshop.NetWork.API;

import javax.inject.Inject;

import io.reactivex.Observable;

public class CategoryFragmentModel extends BaseModel implements CategoryFragmentContract.ICategoryModel {

    @Inject
    public CategoryFragmentModel() {
    }

    @Override
    public Observable<CategoryAllGoodsEntity> requestGoodsAll(String request) {
        return MResponseManager.obtainRetrofit(API.class).classify_category_all_request(request);
    }

    @Override
    public Observable<CategoryGoodsEntity> requestGoods(String request) {
        return MResponseManager.obtainRetrofit(API.class).classify_goods_request(request);
    }

    @Override
    public void destroy() {

    }
}
